﻿using libs.DAL;
using libs.Model;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;

namespace Sever
{
    /// <summary>
    /// TestHandler 的摘要说明
    /// </summary>
    public class TestHandler : IHttpHandler
    {

        public void ProcessRequest(HttpContext context)
        {
            context.Response.ContentType = "text/plain";
            userDao dao = new userDao();
            user userId = dao.GetModel("id=123456");
            string jsonid = libs.DBUtility.JsonHelper.SerializeObject(userId);
            context.Response.Write("{\"result\":" + jsonid + "}");
        }

        public bool IsReusable
        {
            get
            {
                return false;
            }
        }
    }
}